package com.ruoyi.framework.web.exception;

import lombok.Data;

/**
 * TODO
 *
 * @author chenchuan2
 * @date 2023-01-16 15:03:40
 */
@Data
public class ByteDanceCallException extends RuntimeException {
    private static final long serialVersionUID = 1L;
    private String requestId;
    private String errorCode;

    public ByteDanceCallException(String message) {
        this(message, "");
    }

    public ByteDanceCallException(String message, String requestId) {
        this(message, requestId, "");
    }

    public ByteDanceCallException(String message, String requestId, String errorCode) {
        super(message);
        this.requestId = requestId;
        this.errorCode = errorCode;
    }

    public String getRequestId() {
        return this.requestId;
    }

    public String getErrorCode() {
        return this.errorCode;
    }
}
